package com.lq.educationsystem.common.vo;

import lombok.Data;

import java.util.Objects;

@Data
public class TeacherPageVo {
    /**
     * 教师id
     */
    private Integer teacherId;

    /**
     * 教师姓名
     */
    private String teacherName;

    /**
     * 教师账号
     */
    private String teacherAccount;

    /**
     * 教师编号
     */
    private String teacherNo;

    /**
     * 教师密码
     */
    private String teacherPassword;

    private static final long serialVersionUID = 1L;

    /**
     * 页面大小
     */
    private Integer pageSize;

    /**
     * 当前页数
     */
    private Integer page;

    @Override
    public String toString() {
        return "TeacherPageVo{" +
                "teacherId=" + teacherId +
                ", teacherName='" + teacherName + '\'' +
                ", teacherAccount='" + teacherAccount + '\'' +
                ", teacherNo='" + teacherNo + '\'' +
                ", teacherPassword='" + teacherPassword + '\'' +
                ", pageSize=" + pageSize +
                ", page=" + page +
                '}';
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        TeacherPageVo that = (TeacherPageVo) o;
        return Objects.equals(teacherId, that.teacherId) && Objects.equals(teacherName, that.teacherName) && Objects.equals(teacherAccount, that.teacherAccount) && Objects.equals(teacherNo, that.teacherNo) && Objects.equals(teacherPassword, that.teacherPassword) && Objects.equals(pageSize, that.pageSize) && Objects.equals(page, that.page);
    }

    @Override
    public int hashCode() {
        return Objects.hash(teacherId, teacherName, teacherAccount, teacherNo, teacherPassword, pageSize, page);
    }
}
